﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HzybService.BaseInData
{
    /// <summary>
    /// 处方明细上报
    /// </summary>
    public class RcChuFangMxsc : HzybRc
    {
        /// <summary>
        ///
        /// </summary>
        public List<ChuFangMx> ChuFangMx { set; get; }

        public override string GetInputStr()
        {
            StringBuilder sb = new StringBuilder();
            ChuFangMx.ForEach(p =>
            {
                sb.Append(p.CreateOnInputStr() + HzybConstants.p_明细分隔符);
            });
            RuCan = sb.ToString().TrimEnd(HzybConstants.p_明细分隔符.ToCharArray());
            return base.GetInputStr();
        }
    }
}